package com.gym.code.config.admin.client.model;

import java.util.ArrayList;
import java.util.List;

import com.gym.code.config.admin.bean.table.TableMappingBean;

/**
 * 
 * @author xinchun.wang 
   @email: 532002108@qq.com
 * @createTime 2015-4-11 下午12:19:00
 */
public class DBTableModel {

	/**表名称*/
	private String tableName;
	
	/**字段*/
	private List<DBColumnModel> columnList;
	
	private TableMappingBean tableMappingBean;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public List<DBColumnModel> getColumnList() {
		if(columnList == null){
			columnList = new ArrayList<DBColumnModel>();
		}
		return columnList;
	}

	
	public TableMappingBean getTableMappingBean() {
		return tableMappingBean;
	}

	public void setTableMappingBean(TableMappingBean tableMappingBean) {
		this.tableMappingBean = tableMappingBean;
	}

	@Override
	public String toString() {
		return "DBTableModel [tableName=" + tableName + ", columnList="
				+ columnList + "]";
	}
	
	
}
